跪求!!cout<<"max(‘3’,‘5’)is"<<max(‘3’,‘5’)<<endl;这句话哪错了啊

来源:百度知道 编辑:UC知道 时间:2024/04/28 01:01:06
请大家帮忙啊

max(‘3’,‘5’)吧

max
template<class T>
const T& max(const T& x, const T& y);
template<class T, class Pred>
const T& max(const T& x, const T& y, Pred pr);
The first template function returns y if x < y. Otherwise, it returns x. T need supply only a single-argument constructor and a destructor.

The second template function behaves the same, except that it replaces operator<(X, Y) with pr(X, Y).

Microsoft-Specific:
To avoid conflicts with min and max in WINDEF.H, use _MIN and _MAX instead. These macros evaluate to _cpp_min and _cpp_max, respectively.
END Microsoft-Specific

只有这个地方可能错